#include<set>
#include<iostream>
using namespace std;
set<string> a;
int main()
{
	string s;
	while(cin>>s)
		a.insert(s);
	for(auto i=a.begin();i!=a.end();i++)
		cout<<*i<<endl;
    return 0;
}
